package com.xm.service.impl;

import com.xm.mapper.MemberMedicalhistoryMapper;
import com.xm.pojo.MemberMedicalhistory;
import com.xm.service.MemberMedicalhistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberMedicalhistoryServiceImpl implements MemberMedicalhistoryService {
    @Autowired
    MemberMedicalhistoryMapper mapper;
    public int insertMemberMedicalhistoryService(MemberMedicalhistory memberMedicalhistory) {
        return mapper.insertMemberMedicalhistory(memberMedicalhistory);
    }

    public int updateMemberMedicalhistoryService(MemberMedicalhistory memberMedicalhistory) {
        return mapper.updateMemberMedicalhistory(memberMedicalhistory);
    }

    public int deleteMemberMedicalhistoryService(String member_id) {
        return mapper.deleteMemberMedicalhistory(member_id);
    }

    public MemberMedicalhistory queryOneService(String member_id) {
        return mapper.queryOne(member_id);
    }
}
